﻿<%@ Page Language="C#" MasterPageFile="~/Teacher/TeacMasterPage.master" AutoEventWireup="true" CodeFile="AddQuestion.aspx.cs" Inherits="Teacher_TeacMasterPage" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentBody" Runat="Server">
<form id="addQuestionForm" runat="server">
添加试题<br />
    <br />
    选择题型：<asp:DropDownList ID="questionStyle" runat="server" >
        <asp:ListItem Value="null">--选择题型--</asp:ListItem>
        <asp:ListItem Value="fillinblanks">填空题</asp:ListItem>
        <asp:ListItem Value="exclusivechoices">单选题</asp:ListItem>
        <asp:ListItem Value="multiplechoices">多选题</asp:ListItem>
        <asp:ListItem Value="shortanswers">简答题</asp:ListItem>
    </asp:DropDownList><font color="blue">请首先在这里选择题型</font><br />
    
   
    选择分值：<asp:DropDownList ID="score" runat="server">
        <asp:ListItem>1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3</asp:ListItem>
        <asp:ListItem>4</asp:ListItem>
        <asp:ListItem Selected="True">5</asp:ListItem>
        <asp:ListItem>6</asp:ListItem>
        <asp:ListItem>7</asp:ListItem>
        <asp:ListItem>8</asp:ListItem>
        <asp:ListItem>9</asp:ListItem>
        <asp:ListItem>10</asp:ListItem>
        <asp:ListItem>11</asp:ListItem>
        <asp:ListItem>12</asp:ListItem>
        <asp:ListItem>13</asp:ListItem>
        <asp:ListItem>14</asp:ListItem>
        <asp:ListItem>15</asp:ListItem>
    </asp:DropDownList>
    <br />
    题目：<asp:TextBox ID="thetitle" runat="server" Width="422px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="theTitleValidate" ControlToValidate="thetitle" ErrorMessage="请填入题目名称。" runat="server" /><br />
    难度：<asp:DropDownList ID="hardLevel" runat="server">
        <asp:ListItem Selected="True">1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3</asp:ListItem>
        <asp:ListItem>4</asp:ListItem>
        <asp:ListItem>5</asp:ListItem>
    </asp:DropDownList><br />
    选择题各个选项：<br />
    A：<asp:TextBox ID="choiceA" runat="server" Width="330px"></asp:TextBox><asp:RequiredFieldValidator ID="aValidaste" ControlToValidate="choiceA" ErrorMessage="A选项不能为空" runat="server" /> <br />
    B：<asp:TextBox ID="choiceB" runat="server" Width="330px"></asp:TextBox><asp:RequiredFieldValidator ID="bValidaste" ControlToValidate="choiceB" ErrorMessage="B选项不能为空" runat="server" /><br />
    C：<asp:TextBox ID="choiceC" runat="server" Width="330px"></asp:TextBox><asp:RequiredFieldValidator ID="cValidaste" ControlToValidate="choiceC" ErrorMessage="C选项不能为空" runat="server" /><br />
    D：<asp:TextBox ID="choiceD" runat="server" Width="330px"></asp:TextBox><asp:RequiredFieldValidator ID="dValidaste" ControlToValidate="choiceD" ErrorMessage="D选项不能为空" runat="server"  /><br />
    E：<asp:TextBox ID="choiceE" runat="server" Width="330px"></asp:TextBox><br />
    F：<asp:TextBox ID="choiceF" runat="server" Width="330px"></asp:TextBox><br />
    答案：<asp:TextBox ID="answer" runat="server" ></asp:TextBox>
    <asp:RequiredFieldValidator ID="answerValidate" ControlToValidate="answer" ErrorMessage="请输入答案" runat="server" />
    
    &nbsp;&nbsp; <font color="blue">多选和简答的关键字用逗号(，)隔开</font><br />
    <br />
    答案分析：<asp:TextBox ID="analysis" runat="server" Height="64px" Width="230px"></asp:TextBox><font color="blue">该选项为非必填项，建议老师填写。</font><br />
    <asp:Button ID="Button1" runat="server" Text="提交" OnClick="btnAddQuestion_Click" />
    
    <asp:Label ForeColor="red" ID="msg" runat="server" />
</form>
</asp:Content>

